package net.huashitong.ssydt.provider.common.service;


import net.huashitong.ssydt.common.entity.SsCommonFeedback;
import net.huashitong.ssydt.provider.common.mapper.SsCommonFeedbackMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.11.06
 */
@Service
@Transactional
public class SsCommonFeedbackServiceImpl implements SsCommonFeedbackService {

    private SsCommonFeedbackMapper mapper;

    @Autowired
    public SsCommonFeedbackServiceImpl(SsCommonFeedbackMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return mapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SsCommonFeedback record) {
        return mapper.insert(record);
    }

    @Override
    public int insertSelective(SsCommonFeedback record) {
        return mapper.insertSelective(record);
    }

    @Override
    public SsCommonFeedback selectByPrimaryKey(Long id) {
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SsCommonFeedback record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SsCommonFeedback record) {
        return mapper.updateByPrimaryKey(record);
    }
}
